package com.aaa.examine.controller;


import com.aaa.entity.CareOrderItem;
import com.aaa.entity.CheckResult;
import com.aaa.examine.service.CareOrderItemService;
import com.aaa.examine.vo.CheckItemVo;
import com.aaa.examine.vo.CheckVo;
import com.aaa.vo.Result;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;
import java.util.List;

/**
 * IntelliJ IDEA
 * CareOrderController
 * 好好学习天天练
 *患者
 * @author caojianbin
 * 2023/3/29
 */
@RestController
@RequestMapping("/examine/order")
public class CareOrderController {
    @Resource
    private CareOrderItemService careOrderItemService;


//未检查患者
@PostMapping("queryAll/{current}/{size}")
public Result<IPage<CheckResult>> queryAll(
        @PathVariable Integer current,
        @PathVariable Integer size,
        @RequestBody CheckVo checkVo){
    return careOrderItemService.queryAll(current,size,checkVo);
}

//已经支付患者
    @PostMapping("selectOrderAll")
    public Result<List<CareOrderItem>> selectOrderAll(@RequestBody CheckItemVo checkItemVo){
        return careOrderItemService.selectOrderAll(checkItemVo);
    }
}
